package top.zackyoung.bbs.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author: ZackYoung
 * @time: 2020/6/9
 */
@Controller
public class ErrorController {
    @RequestMapping("/404")
    public ModelAndView noHandleMethod(ModelAndView mav) {
        mav.setViewName("error/404");
        return mav;
    }
}
